package com.gdzl_hadoop.dao;

import com.gdzl_hadoop.pojo.Ysgl;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface YsglMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Ysgl record);

    int insertSelective(Ysgl record);

    Ysgl selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Ysgl record);

    int updateByPrimaryKey(Ysgl record);

    List<String> selectValueByYS1_name(@Param("YS1_name")String YS1_name);

    List<String> selectYS1_name(@Param("guid")String guid);

    List<String> selectYS2_name(@Param("YS1_name")String YS1_name, @Param("guid")String guid);

    List<Ysgl> selectYsglByName( @Param("YS1_name") String YS1_name,@Param("YS2_name") String YS2_name, @Param("guid")String guid);

    Ysgl checkExist(@Param("YS1")String YS1,@Param("YS2")String YS2, @Param("guid")String guid);

    int checkYSExist(@Param("YS1_name")String YS1_name,@Param("YS2_name")String YS2_name);

    int deleteAll();

    int deleteByGuid(@Param("guid")String guid);
}